home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
-
-
-
- XUser v1.1 - Nov 30 1987
-
-
- A Opus* (NoTm) utility ...
-
-
- Copyright (C) 1987 Joaquim Homrighausen, all rights reserved
-
-
-
-
-
-
-
- XUser v1.1 - Nov 30 1987 [User's Manual] Page 1
-
-
- One of my basic needs is to take certain action depending on
- who is on my board. Not specified by user number since that
- can change by a simple "user sort".
-
- The main function of the program was to scan for a certain
- user name, but I have now included support for several
- criterias - such as HELP and PRIV level as well as the ANSI
- flag.
-
- For complete syntax, please print out or look into the CTL
- file supplied with this package. The name XU.CTL is not
- required, you may specify anything on the command line and
- the program will take that as the CTL file definition.
-
-
-
- XUser v1.1 - Nov 30 1987 [User's Manual] Page 2
-
-
- The CTL file is *not* compiled, just simply scanned through
- (even though compiling usually cuts the time, XU scans the
- file fast enough) - the advantage is that you won't have so
- many files created by small utilities filling your harddisk.
-
- This program does support multiple LASTUSER.* files (if you
- are NOT running Opus* v1.00 or higher, don't worry about
- this) by checking which one is the most recent one and taking
- the user name from there. So if you're running more than one
- Opus* on your machine, no worries, it will work.
-
- OPERATION:
- ----------
- You can execute the program directly from Opus, or thru a
- batch file. If you execute the program from a batch file, you
- can "pickup" whatever code is returned by XU and perform
- the proper action.
-
- The errorlevels are set as follows:
-
- 5 - User found, and proper action taken
- 4 - Command Execution Error
- 3 - Memory Allocation Error
- 2 - Illegal command encountered in CTL file
- 1 - File Access Error
- 0 - Program completed w/o any action
-
-
- XUser v1.1 - Nov 30 1987 [User's Manual] Page 3
-
-
- Memory allocation error is a most un-likely one, it will
- only occur when you simply do not have enough memory free
- to process all the USER statements.
-
- Get down to it...
-
- EXAMPLE:
- --------
- In my WELCOME.??? file I have a embedded command to force Opus*
- to call a batchfile called CHECKUSR.BAT which contains very
- simple commands.
-
- (1) REM. CheckUser, batchfile for XUser
- (2) REM.
- (3) ECHO OFF
- (4) Copy \opus\misc\empty.txt \opus\misc\show.bbs
- (5) XU
-
- In my CTL file for XU, I have several User names that I would
- like to keep off my board, and some that I'd like to give a
- warning.
-
- (Example of XU.CTL in my env)
- %
- %
- USER The Hacker, kill
- USER JigSaw, warning
- USER Brutus, warning
- %
- %
-
- (The KILL.BAT file)
- rem.
- rem.
- dtr com2: off
- rem.
- rem. Boot is usually required here, so that's what
- rem. I do.
- boot
-
- (The WARNING.BAT file)
- rem.
- rem.
- copy \opus\misc\warning.* \opus\misc\show.*
- rem.
- rem.
-
- XUser v1.1 - Nov 30 1987 [User's Manual] Page 4
-
-
- Two more commands have been added in v1.03, these are:
-
- 1) PRIV <level> <command>
- 2) HELP <level> <command>
-
- The reason for these two new commands is that sometimes, you
- might want to include a whole group of people at the same
- privilege level or help level in your criteria.
-
- You could for example have Opus* display a different bulletin
- depending on the user's privilege level. Or maybe just a
- little message depending on the user's help level.
-
- I could keep on listing many different ways of using this, but
- alas, it's all up to you.
-
- IMPORTANT: The order in which the commands are scanned is
- 1) USER
- 2) PRIV
- 3) HELP
- 4) ANSI
-
- So, if no match is found w/the user argument, the program will
- continue with the priv arg(s) and so on.
-
-
- XUser v1.1 - Nov 30 1987 [User's Manual] Page 5
-
-
- The second line in my Welcome.* files is ^OSC:\Opus\Misc\Show
- which will show the file specified.
-
- If the user wasn't found, no files will overwrite the SHOW.*
- files, hence Opus will display a empty file and continue its
- execution.
-
- If the user was found w/a warning, the new SHOW.* file will
- be shown. And if the user was found and executed the KILL
- command, everything would be fine as well.
-
-
- There are several ways to do this, this is just one example.
- You could for example release control back to Opus after the
- kill command (lower the DTR) is executed and the user would
- be logged off. You could also create a new SHOW file that
- could contain the embedded CTRL-X etc etc etc.
-
-
-
- XUser v1.1 - Nov 30 1987 [User's Manual] Page 6
-
-
- NOTES:
- ------
- The command in the ctl file to execute does not have to be
- a batchfile of course. It could for example be: DTR COM1 OFF
- to lower DTR on Com1: and then return to Opus.
-
- This program was written because I wanted it, but now I know
- a lot of people are using it, so if you have any suggestions
- to improvement or ideas that you have, please let me know ...
-
- One more thing, I know this manual 'aint no artwork, but hey,
- it's not the doing, it's the thinking!
-
- Please send bug-reports (Aaaarrgh) to Opus node 1:135/20 ...
-
- Joaquim Homrighausen
- 5301 NW 161 Street
- Miami FL 33014
- USA
-
- *) Opus is written by Wynn Wagner III, (C) 1987 WW III
-
- Copyright (C) 1987 Joaquim Homrighausen, all rights reserved
-
-
-